import request from '../utils/request';

// 通过id查找商品
export const getGoodsDetailById = (data) => {
    return request({
        url: '/goods_detail/findAll',
        method: 'post',
        data
    });
};

// 通过id查找收藏
export const getCollectionById = (data) => {
    return request({
        url: '/findcollection',
        method: 'post',
        data
    });
};

// 通过id添加浏览记录
export const getBrowseById = (data) => {
    return request({
        url: '/addbrowse',
        method: 'post',
        data
    });
};
